home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ CoolSwitch Enabled.xpl < prev    next >
Text File  |  1999-10-15  |  1KB  |  51 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\General\Cool Switch"
  5. "NAME"="Cool Switch Disabled"
  6. "VERSION"="1.32"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Disable Cool Switch"
  9. "DESCRIPTION 1"="If you press ALT+TAB, you perform a so called "Cool Switch"."
  10. "DESCRIPTION 2"="If this option is enabled, the current user is no longer able to use Cool Switch."
  11. "DESCRIPTION 3"="Note: It seems this setting has no effect if you are using IE 4.0 and above."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com"
  15.  
  16.  
  17.  
  18. sPath="HKEY_CURRENT_USER\Control Panel\Desktop\CoolSwitch"
  19.  
  20. Sub Plugin_Initialize 
  21.  if GetWinVer=2 then
  22.   i=RegReadValue(sPath)
  23.   if IsEmpty(i)=false then
  24.    If i=0 then Call SetUIElement(1,true) 
  25.   end if  
  26.  else
  27.   Disable
  28.  end if
  29. End Sub
  30.  
  31. Sub Plugin_CheckData(ElementIndex)
  32. End Sub
  33.  
  34. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  35.  b=GetUIElement(1)
  36.  if b=true then
  37.   Call RegWriteValue(sPath,"0",1)
  38.  else
  39.   Call RegWriteValue(sPath,"1",1)
  40.  end if
  41.  
  42.  Restart
  43. End Sub
  44.  
  45.  
  46. Sub Plugin_Terminate 
  47. End Sub
  48.  
  49.  
  50.  
  51.